<?php
echo "<p>test script !</p>";

error_reporting(E_ALL);

wakapi::needclass('duration');

//$t=new duration();
//$t->addDays(7);
//echo wakapi::vardump($t);

//echo "ZOB !";
//wakapi::needclass('databean');
wakapi::needclass('datetimebean');
$b=new datetimebean();
$b->setRandom('1950-01-01',50*365.25*24*3600);
echo $b->tostring('%d/%m/%Y %H:%i:%s (%w)').'<br/>';

//echo wakapi::vardump($b);


//echo 'days : '.$t->getAsDays();

//echo wakapi::vardump($t->getAsArray());
?>
